﻿@model ZhongheCms.Models.TrainPageModel
@{
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    int rows = 1;
    int rows1 = 1;

    string uls = "";
    string ule = "";
    var fp = Model.Contents.CurrentPage - 1;

    var np = Model.Contents.CurrentPage + 1;          
}
@section head
{
     <style type="text/css">
    #pages{
	margin:10px auto 0;
}
#pages a{
	color:#666;
}
.pages{
	line-height:28px;
	height:28px;
	border:1px solid #eee; 
	background:#fbfbfb;
}
.pages a, .pages  span.selected, .pages  b.selected{
	display:inline-block;
	height:28px; 
	padding:0 14px;
	border-right:1px solid #eee; 
	font-family:Tahoma; 
	font-weight:bold;
}
.pages a.selected,.pages a:hover{
	color:#f60;
}
.pages a.next,.pages a.up{
	padding:0 30px;
}
.pages span.selected,.pages b.selected{
	color:#f60;
}
.pages a.disabled{ 
	cursor: default; 
	color:#ccc
}
.pages a.disabled:hover{
	text-decoration:none
}


-->
</style>
}
<div class="fix gWrapper">
    <div class="breakcrumb">
        <a href="/">首页</a>&nbsp;&gt;&nbsp;
            <a href="/SunJob/Notice">公告通知</a>
    </div>
    <!--广告位-->
    @* <div class="advImgBox mb15">
            <a href="" target="_blank"><img src="img/cfd041571150638dc11aeda9264d9a6d.jpg" border="0" width="1200" height="90" alt=""></a>
        </div>*@
    <div class="listPage_main fl mb15">
        <div class="gBor">
            <h3 class="gH3">@Model.PageTitle</h3>


            @foreach (var item in Model.Contents.Items)
            {
                rows1 = rows == 1 ? 0 : rows % 5;
                uls = "";
                ule = "";
                if (rows1 == 0)
                {
                    uls="<ul class=\"m15 listPage_main_list gList gBor-b pb10\">";
                   
                }
                if (rows1 == 0 && rows > 1)
                {
                    ule = "</ul>";
                }
               
                 <ul class="m15 listPage_main_list gList gBor-b pb10">
                        
                                <li><a href="/SunJob/NoticeDesc/@item.Id" title="@item.ContentTitle">@item.ContentTitle</a> <span class="time">@item.CreateDate.ToShortDateString()</span></li>
                     </ul>
                   @*  @Html.Raw(ule)*@
                rows++;
            }




                
                      
                  @if (Model.Contents.TotalPages > 1)
        {
              <div id="pages">


                

            <div class="pages">
                
                <a href="/SunJob/Notice/0?pageIndex=1">首页</a>
                @if (Model.Contents.CurrentPage - 1 > 0)
                {
                    <a href="/SunJob/Notice/0?pageIndex=@fp">上一页</a>    
                }
                 @for (int i = 1; i <= Model.Contents.TotalPages; i++)
                 {
                     if (i == Model.Contents.CurrentPage)
                     {
                         <span class="selected">@i</span>
                     }
                     else
                     {
                          <a href="/SunJob/Notice/0?pageIndex=@i">@i</a>
                     }
                 }
            
                @if (Model.Contents.CurrentPage + 1 <= Model.Contents.TotalPages)
                {
                     <a href="/SunJob/Notice/0?pageIndex=@np">下一页</a>    
                }
                
               <a href="/SunJob/Notice/0?pageIndex=@Model.Contents.TotalPages">尾页</a>
            </div>


            </div>
        }
      
              

              

               @* <div class="inc_page"><a title="Total record">&nbsp;<b>159</b> </a>&nbsp;&nbsp;&nbsp;<b>1</b>&nbsp;<a href=" index_2.html">2</a>&nbsp;<a href=" index_3.html">3</a>&nbsp;<a href=" index_4.html">4</a>&nbsp;<a href=" index_5.html">5</a>&nbsp;<a href=" index_6.html">6</a>&nbsp;<a href=" index_7.html">7</a>&nbsp;<a href=" index_2.html">下一页</a>&nbsp;<a href=" index_7.html">尾页</a></div>*@
        </div>
    </div>
    <div class="listPage_sidebar fr">
        <div class="gBor mb15  bff">
            <h3 class="gH3">最新职位</h3>
            <ul class="m15 insidePage-sideBar-list gList">
               
                  @foreach (var item in Model.JobInfos)
                    {
                        <li><a href="/SunJob/JobDesc/@item.Id" target="_blank">@item.JobTitle <span style="color: red">@item.Salary</span></a></li>
                    }
            </ul>
        </div>

      @*  <div class="gBor mb15  bff">
            <h3 class="gH3"><a href="/SunJob/Train/@myId" target="_blank">@myTitle</a></h3>
            <ul class="m15 insidePage-sideBar-list gList">
              
                  @foreach (var item in Model.SideContents)
                  {
                       <li><a href="/SunJob/TrainDesc/@item.Id" title="@item.ContentTitle">@item.ContentTitle</a> </li>
                  }
              
            </ul>
        </div>*@

    
    </div>
    
    
</div>
